#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>

void Reverse(char* left, char* right) {
	while (left < right) {
		char tmp = 0;
		tmp = *left;
		*left = *right;
		*right = tmp;
		left++;
		right--;
	}

}

int main() {
	char arr[100001] = { 0 };
	gets(arr);
	int n = strlen(arr);
	Reverse(arr, arr+n-1);
	printf("%s\n",arr);
	return 0;
}